﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SupplyChain;

namespace SupplyChainTests
{
    class MockData
    {

        public static SupplyChainEntity GetMockSupplier()
        {
            return new SupplyChainEntity()
            {
                Name = "CanadaDepot",
                Inventory = new Inventory()
            };
        }

        public static SupplyChainEntity GetMockConsumer()
        {
            return new SupplyChainEntity()
            {
                Name = "HamiltonGeneralHospital",
                Inventory = new Inventory()
            };
        }

        //public static Order GetMockOrder(Supplier supplier)
        //{
        //    return new Order()
        //    {
        //        OrderKey = "OR0001",
        //        Supplier = supplier,
        //        OrderLineItems = new List<OrderLineItem>()
        //        {
        //            new OrderLineItem()
        //            {
        //                Batch = supplier.Inventory.InventoryItems[0].Batch,
        //                Quantity = 500
        //            },
        //            new OrderLineItem()
        //            {
        //                Batch = supplier.Inventory.InventoryItems[1].Batch,
        //                Quantity = 500
        //            }
        //        }
        //    };
        //}

        //public static Supplier GetMockSupplierWithStock()
        //{
        //    var mock = GetMockSupplier();
        //    mock.Inventory.InventoryItems = new List<InventoryItem>()
        //    {
        //        new InventoryItem() 
        //        {
        //            Batch = new Batch()
        //            {
        //                BatchKey = "BK001",
        //                ProductType = SupplyChainContext.ProductTypes[0],
        //                Quantity = 12000
        //            },
        //            ExpiryDate = new DateTime(2009, 01, 01),
        //            Quantity = 6000
        //        },
        //        new InventoryItem() 
        //        {
        //            Batch = new Batch()
        //            {
        //                BatchKey = "BK002",
        //                ProductType = SupplyChainContext.ProductTypes[1],
        //                Quantity = 8000
        //            },
        //            ExpiryDate = new DateTime(2009, 03, 03),
        //            Quantity = 4000
        //        }
        //    };
        //    return mock;
        //}
    }
}
